package learnjava.basic.other;

import java.io.*;

public class FileCopyer {

    public static void main(String[] args) {

        String srcFilePath = "E://arr.txt";
        String desFilePath = "E://arrDes.txt";
        BufferedReader br = null;
        BufferedWriter bw = null;
        try {
            br = new BufferedReader(new FileReader(srcFilePath));
            bw = new BufferedWriter(new FileWriter(desFilePath));
            String line = null;
            while((line=br.readLine())!=null){
                bw.write(line);
                bw.write("\n");
            }
        }catch (IOException e){
        }finally {
            try {
                br.close();
                bw.close();
            }catch (IOException e) {
            }
        }
    }

}
